-- GENERATED SPELL FOR [Galak Marauder] --


function spell0_4099(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_4099', 3000, 1)
end

function Sorts_4099(pUnit, Event)
local choix_sorts_4099 = math.random(0, 0)
if choix_sorts_4099 == 0 then
pUnit:RegisterEvent('spell0_4099', 1, 1)
end
end

function mob4099_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4099', math.random(1500, 3000), 1)
end

function mob4099_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4099_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4099_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4099, 1, 'mob4099_Action')
RegisterUnitEvent(4099, 2, 'mob4099_Leave')
RegisterUnitEvent(4099, 3, 'mob4099_Kill')
RegisterUnitEvent(4099, 4, 'mob4099_Die')
